package tp.pr5.instructions;

import tp.pr5.NavigationModule;
import tp.pr5.RobotEngine;
import tp.pr5.instructions.exceptions.InstructionExecutionException;
import tp.pr5.instructions.exceptions.WrongInstructionFormatException;
import tp.pr5.items.ItemContainer;

public class BuyInstruction implements Instruction 
{

	private NavigationModule navigation;
	private ItemContainer robotContainer;
	private RobotEngine engine;
	
	private String id;

	public BuyInstruction()
	{
		
	}
	
	public BuyInstruction(String id)
	{
		this.id = id;
	}
	
	@Override
	public Instruction parse(String cad) throws WrongInstructionFormatException 
	{
		return null;
	}

	@Override
	public String getHelp() 
	{
		return "BUY|COMPRAR";
	}

	@Override
	public void configureContext(RobotEngine engine, NavigationModule navigation, ItemContainer robotContainer) 
	{
		this.navigation = navigation;
		this.robotContainer = robotContainer;
		this.engine = engine;
	}

	@Override
	public void execute() throws InstructionExecutionException 
	{
		//this.engine.buy(this.id);
	}

}
